﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Bll
{
    public class Series
    {
        public static DataTable MULTIPLE(string strCon)
        {
            return Dal.Series.MULTIPLE(strCon);
        }

        public static DataTable MULTIPLE(string strCon, int strCatID)
        {
            return Dal.Series.MULTIPLE(strCon, strCatID);
        }
        public static DataTable MULTIPLE_Pro(string strCon, int id)
        {
            return Dal.Series.MULTIPLE_Pro(strCon, id);
        }

        public static DataTable Single(string strCon, int pkid)
        {
            return Dal.Series.Single(strCon, pkid);
        }

        public static int Update(string strCon,
                int txbCatID,
                string txbSerTitle,
                string txbDescription,
                string txbImgURL,    
                int txbSortBy,
                int txbPKID)
        {
            return Dal.Series.Update(
                    strCon,
                    txbCatID,
                    txbSerTitle,
                    txbDescription,
                    txbImgURL,
                    txbSortBy,
                    txbPKID
            );
        }

        public static int Insert(string strCon,
                int txbCatID,
                string txbSerTitle,
                string txbDescription,
                string txbImgURL,
                int txbSortBy)
        {
            return Dal.Series.Insert(
                    strCon,
                    txbCatID,
                    txbSerTitle,
                    txbDescription,
                    txbImgURL,
                    txbSortBy
            );
        }


        public static int Delete(string strCon, int pkid)
        {
            return Dal.Series.Delete(strCon, pkid);
        }

    }
}
